package com.ysd.entity;

/**
 * 地址类
 * 
 * @author dzj20
 *
 */
public class Address {
	private Integer a_id; // 地址编号
	private Integer belongToUserId; // 外键,属于user的id
	private String a_name; // 订单用户名
	private String a_phone; // 订单用户手机号
	private String province; // 省份
	private String city; // 城市
	private String address; // 地址

	private User user; // 创建实体类User对象用来使用resultMap

	public Integer getA_id() {
		return a_id;
	}

	public void setA_id(Integer a_id) {
		this.a_id = a_id;
	}

	public Integer getBelongToUserId() {
		return belongToUserId;
	}

	public void setBelongToUserId(Integer belongToUserId) {
		this.belongToUserId = belongToUserId;
	}

	public String getA_name() {
		return a_name;
	}

	public void setA_name(String a_name) {
		this.a_name = a_name;
	}

	public String getA_phone() {
		return a_phone;
	}

	public void setA_phone(String a_phone) {
		this.a_phone = a_phone;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Address(Integer a_id, Integer belongToUserId, String a_name, String a_phone, String province, String city,
			String address, User user) {
		super();
		this.a_id = a_id;
		this.belongToUserId = belongToUserId;
		this.a_name = a_name;
		this.a_phone = a_phone;
		this.province = province;
		this.city = city;
		this.address = address;
		this.user = user;
	}

	public Address() {
		super();
	}

	@Override
	public String toString() {
		return "Address [a_id=" + a_id + ", belongToUserId=" + belongToUserId + ", a_name=" + a_name + ", a_phone="
				+ a_phone + ", province=" + province + ", city=" + city + ", address=" + address + ", user=" + user
				+ "]";
	}

}
